package com.pie4cloud.pie.job.api.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @program: sod
 * @description:
 * @author: zzj
 * @create: 2019-12-20 15:14
 **/
@Data
@Entity
@Table(name = "T_DATA_DISPENSE_TIMING_INFO")
@DiscriminatorValue("DISPENSE")
public class DispenseTimingEntity extends JobInfoEntity {
	@Id
	@Column(name = "ID",length = 11)
	@TableId(value = "Id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
	@ApiModelProperty(value="id")
	private Long id;
	/**
	 * 表名称
	 */
	@Column(name = "table_name", length = 50)
	private String tableName;
	/**
	 * 收集裂隙 0 数据库 1本地盘
	 */
	@Column(name = "collect_type", length = 50)
	private Integer collectType;



	@Transient
	private DispenseCongfigEntity dispenseCongfig;

}

